Prim's algorithm for minimum spanning tree

join shbcf.ru